﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace Bmz.Laboratory.Workflow.Entity
{
    public class TemplateNodeAccessPermission:BaseEntity
    {
        [Key]
        public int Id { get; set; }

        [MaxLength(50)]
        public string TemplateNodeCode { get; set; }

        [ForeignKey("TemplateNodeCode")]
        public virtual TemplateNode TemplateNode { get; set; }

        [MaxLength(50)]
        public string TemplateAccessObject { get; set; }

        [ForeignKey("TemplateAccessObject")]
        public virtual TemplateAccess TemplateAccess { get; set; }

        [MaxLength(50)]
        public string TemplatePermissionCode { get; set; }

        [ForeignKey("TemplatePermissionCode")]
        public virtual TemplatePermission TemplatePermission { get; set; }
    }
}
